package com.zjj.mapper;
import java.util.Collection;
import java.util.List;
import com.zjj.entity.Employees;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
* @author Y
* @description 针对表【employees】的数据库操作Mapper
* @createDate 2024-10-21 08:46:54
* @Entity com.zjj.entity.Employees
*/

@Mapper
public interface EmployeesMapper {
    //获取员工列表
    List<Employees> selectAllByEmpNameAndPhoneNumber(@Param("empName") String empName,
                                                     @Param("phoneNumber") String phoneNumber);

    //新增
    int insertBatch(@Param("employeesCollection") Collection<Employees> employeesCollection);

    //修改
    int updateSelective(Employees employees);

    //删除
    int delByEmployeeId(@Param("employeeId") Integer employeeId);

    //获取用户信息通过登录名和密码
    Employees selectAllByLoginNameAndPassword(@Param("loginName") String loginName,
                                              @Param("password") String password);
}




